import { IFeidaoAiBrowserComponent } from '@feidao/web/interfaces';

export default async function a012(fd: IFeidaoAiBrowserComponent, ...args: any[]) {
	//  列表全选按钮
	const v = fd.data.node.querySelector<HTMLInputElement>('[data-feidao-id="checkall"]').checked;
	// TODO 和列表的复选框设置的data-feidao-name保持一致
	const all_boxs = fd.data.node.querySelectorAll('[data-feidao-name="certifi"]');
	Array.from(all_boxs).forEach((ipt: HTMLInputElement) => {
		ipt.checked = v;
	});
}
